import pyperclip
import time
import webbrowser
copyBuff=' '
while True:
    time.sleep(1)
    copyedText=pyperclip.paste()
    if copyBuff!=copyedText:
        copyBuff=copyedText
        normalizedText = copyBuff.replace('\n', ' ')
        url='https://translate.google.cn/#zh-CN/en/'+normalizedText
        webbrowser.open(url)

    else:
        print('no change')